<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Test GIE</title>
  <link rel="stylesheet" href="qunit.css">
</head>
<body>
  <script src="jquery.js"></script>
  <script src="underscore.js"></script>
  <script src="rip.js"></script>
  <script src="bf.js"></script>
  <script src="Blob.js"></script>
  <script src="FileSaver.js"></script>
  <script src="graphImportExport.js"></script>
  <script>
		var g = 
			{
				0: {},
				1: {3:1},
				2: {1:3, 6:4},
				3: {4:3, 6:5, 7:6},
				4: {1:2, 2:9},
				5: {4:4, 7:1},
				6: {5:3},
				7: {6:5}
			};
			
			g = {"10": {"9": 1}, "1": {"0": 1, "2": 1}, "0": {"1": 1},
    "3": {"2": 1, "4": 1}, "2": {"1": 1, "3": 1}, "5": {"4": 1, "6": 1},
    "4": {"3": 1, "5": 1}, "7": {"8": 1, "6": 1}, "6": {"5": 1, "7": 1},
    "9": {"8": 1, "10": 1}, "8": {"9": 1, "7": 1}};
	
		var r = new BF.Bf(g);
		r.compute(function(final_paths, nexthops){
			console.log('final_paths', final_paths);
			console.log('nexthops', nexthops);
			var exportedText = ExportToText(final_paths);
			console.log('exportedText', exportedText);
			//var blob = new Blob([exportedText], {type: "text/plain;charset=utf-8"});
			//saveAs(blob, "graph-export.txt");
		});
		
		
  </script>
</body>
</html>